<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var getcardJsonListUrl = "/card/getJsonList/";
$(document).ready(function() {
	startMasker();
	$.ajax({
		type: "GET",
		url: getcardJsonListUrl,
		data: "",
		dataType: "json",
		success: function(data) {
			if(data.code > 0) {
				var resultList = data.result;
				var renderHtml = "[<br/>";
				for(var i=0;i<resultList.length;i++) {
					var result = resultList[i];
					$("#cardId").html(result.cardId);
					$("#deployId").html(result.deployId);
					$("#name").html('"'+result.name+'"');					$("#desc").html('"'+result.desc+'"');					$("#module").html(result.module);					$("#catalog").html(result.catalog);					$("#type").html(result.type);					$("#quality").html(result.quality);					$("#award").html(result.award);					$("#condition").html(result.condition);					$("#nextCardId").html(result.nextCardId);					$("#cardres").html(result.cardres);										
					renderHtml = renderHtml + $("#tpl_card").html();
					if(i < resultList.length - 1) {
						renderHtml = renderHtml + ","
					}
				}
				renderHtml = renderHtml + "]<br/>";
				$("#card_info").html(renderHtml);
				stopMasker();
			}else {
				errDialog(data.message);
			}
		}
});
});

</script>
<body>
<div class="json" id="card_info">

</div>
<div style="display:none" id="tpl_card">
<div class="json">
{<br/>
<span class="jsonkey">cardId:</span><span id="cardId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">module:</span><span id="module" class="jsonvalue"></span>,<br/>
<span class="jsonkey">catalog:</span><span id="catalog" class="jsonvalue"></span>,<br/>
<span class="jsonkey">type:</span><span id="type" class="jsonvalue"></span>,<br/>
<span class="jsonkey">quality:</span><span id="quality" class="jsonvalue"></span>,<br/>
<span class="jsonkey">award:</span><span id="award" class="jsonvalue"></span>,<br/>
<span class="jsonkey">condition:</span><span id="condition" class="jsonvalue"></span>,<br/>
<span class="jsonkey">nextCardId:</span><span id="nextCardId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">cardres:</span><span id="cardres" class="jsonvalue"></span><br/>
</br>
}
</div>
</div>
<div class="maskerContent" id="framemasker" name="framemasker">
	<iframe class="maskframe" src="/pages/core/Masker.html"></iframe>
</div>
</body>